<template>
    <div>
        <el-row>
            <el-col :span="3">
                <el-menu
                    default-active="2"
                    class="el-menu-vertical-demo"
                    @open="handleOpen"
                    @close="handleClose"
                    background-color="#545c64"
                    text-color="#fff"
                    active-text-color="#ffd04b">









                    
                    <el-submenu index="2">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span style="font-size:20px">导轨</span>
                        </template>
                        <el-menu-item index="2-1" @click="port='导轨位置'" style="font-size:20px">导轨位置</el-menu-item>
                    </el-submenu>
                    <el-submenu index="3">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span style="font-size:20px">灯光</span>
                        </template>
                        <el-menu-item index="3-1" @click="port='左右补光灯'" style="font-size:20px" >左右补光灯</el-menu-item>
                        <el-menu-item index="3-2" @click="port='天空散射灯'" style="font-size:20px">天空散射灯</el-menu-item>
                        <el-menu-item index="3-3" @click="port='PL1C05'" style="font-size:20px"> PL1C05</el-menu-item>
                    </el-submenu>
                    <el-submenu index="4">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span style="font-size:20px">亮度计</span>
                        </template>
                        <el-menu-item index="4-1" @click="port='照度计位置'" style="font-size:20px">亮度计参数</el-menu-item>
                    </el-submenu>
                </el-menu>
            </el-col>
            <el-col :span="21" v-if="port === '导轨位置'" class="custom-table">
                <div style="height: 91vh; overflow: auto; position: relative;">
                    <el-table
                    height="100%"
                    class="custom-table"
                    stripe
                    border
                        :data="tableData"
                        style="width: 100%">
                        <el-table-column
                            fixed
                            prop="cms_auto_name"
                            label="名称"
                            width="180">
                        </el-table-column>

                        <el-table-column
                            prop="cms_auto_0"
                            label="摄像头三轴 P"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_1"
                            label="摄像头三轴 Y">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_2"
                            label="摄像头三轴 R">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_3"
                            label="摄像头左右">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_4"
                            label="屏幕升降位置">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_5"
                            label="屏幕三轴 Y">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_6"
                            label="屏幕三轴 R">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_7"
                            label="屏幕三轴 P">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_8"
                            label="摄像头升降">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_9"
                            label="亮度计升降">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_10"
                            label="亮度计左右">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_11"
                            label="亮度计前后上">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_12"
                            label="亮度计前后下">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_13"
                            label="散射光源 X">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_14"
                            label="散射光源 Y">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_15"
                            label="散射光源 R">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_16"
                            label="亮度计圆弧">
                        </el-table-column>
                        <el-table-column
                            prop="cms_auto_17"
                            label="主导轨位置">
                        </el-table-column>

                        <el-table-column
                            fixed="right"
                            label="操作"
                            width="100">
                            <template slot-scope="scope">
                                <el-button @click="is_UpdateAutoCms(scope.row)" type="text" size="small">修改
                                </el-button>
                                <el-button @click="DeleteAutoCms(scope.row)" type="text" size="small">删除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
            </el-col>
            <el-col :span="21" v-if="port === '用户管理'">
                <div style="height: 91vh; overflow: auto; position: relative;">
                    <el-table
                    height="100%"
                    stripe
                    border
                        :data="user_tableDate"
                        style="width: 100%">
                        <el-table-column
                            fixed
                            prop="username"
                            label="用户名"
                            width="180">
                        </el-table-column>

                        <el-table-column
                            prop="email"
                            label="邮箱"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="mobile"
                            label="手机号">
                        </el-table-column>

                        <el-table-column
                            fixed="right"
                            label="操作"
                            width="100">
                            <template slot-scope="scope">

                                <el-button @click="UpdateUser(scope.row.id)" type="text" size="small">删除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
            </el-col>
            <el-col :span="21" v-if="port === '左右补光灯'">
                <div style="height: 91vh; overflow: auto; position: relative;">
                    <el-table
                    height="100%"
                    stripe
                    border
                        :data="light_tableDate"
                        style="width: 100%">
                        <el-table-column
                            fixed
                            prop="username"
                            label="名称"
                            width="180">
                        </el-table-column>

                        <el-table-column
                            prop="lux"
                            label="照度"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="cct"
                            label="色温">
                        </el-table-column>


                        <el-table-column
                            fixed="right"
                            label="操作"
                            width="100">
                            <template slot-scope="scope">
                                <el-button @click="is_UpdateLight(scope.row)" type="text" size="small">修改</el-button>
                                <el-button @click="DeleteLight(scope.row.id)" type="text" size="small">删除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
            </el-col>
            <el-col :span="21" v-if="port === '天空散射灯'">
                <div style="height: 91vh; overflow: auto; position: relative;">
                    <el-table
                    height="100%"
                    stripe
                    border
                        :data="sky_light_tableDate"
                        style="width: 100%">
                        <el-table-column
                            fixed
                            prop="sky_username"
                            label="名称"
                            width="180">
                        </el-table-column>

                        <el-table-column
                            prop="sky_lux"
                            label="照度"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="sky_cct"
                            label="色温">
                        </el-table-column>


                        <el-table-column
                            fixed="right"
                            label="操作"
                            width="100">
                            <template slot-scope="scope">
                                <el-button @click="is_UpdateSkyLight(scope.row)" type="text" size="small">修改
                                </el-button>
                                <el-button @click="SkyLightDelete(scope.row.id)" type="text" size="small">删除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
            </el-col>
            <el-col :span="21" v-if="port === 'PL1C05'">
                <div style="height: 91vh; overflow: auto; position: relative;">
                    <el-table
                    height="100%"
                    stripe
                    border
                        :data="pl1c05_tableDate"
                        style="width: 100%">
                        <el-table-column
                            fixed
                            prop="PL1C05_username"
                            label="名称"
                            width="180">
                        </el-table-column>

                        <el-table-column
                            prop="PL1C05_lux"
                            label="照度"
                        >
                        </el-table-column>
                        <el-table-column
                            fixed="right"
                            label="操作"
                            width="100">
                            <template slot-scope="scope">
                                <el-button @click="is_UpdatePL1C05(scope.row)" type="text" size="small">修改</el-button>
                                <el-button @click="PL1C05Delete(scope.row.id)" type="text" size="small">删除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
            </el-col>
            <el-col :span="21" v-if="port === '照度计位置'">
                <div style="height: 91vh; overflow: auto; position: relative;">
                    <el-table
                                        height="100%"
                    stripe
                    border
                        :data="brightness_tableDate"
                        style="width: 100%">
                        <el-table-column
                            fixed
                            prop="name_file"
                            label="相机配置名称"
                            width="180">
                        </el-table-column>

                        <el-table-column
                            prop="is_exposure"
                            label="是否是自动曝光"
                        >
                            <template>{{ brightness_tableDate.is_exposure ? 'false' : 'true  ' }}</template>
                        </el-table-column>
                        <el-table-column
                            prop="is_filter_state_red"
                            label="滤镜设置(红)"
                        >
                            <template>{{ brightness_tableDate.is_filter_state_red ? 'false' : 'true  ' }}</template>
                        </el-table-column>
                        <el-table-column
                            prop="is_filter_state_green"
                            label="滤镜设置(绿)"
                        >
                            <template>{{ brightness_tableDate.is_filter_state_green ? 'false' : 'true  ' }}</template>
                        </el-table-column>
                        <el-table-column
                            prop="is_filter_state_blue"
                            label="滤镜设置(蓝)"
                        >
                            <template>{{ brightness_tableDate.is_filter_state_blue ? 'false' : 'true  ' }}</template>
                        </el-table-column>
                        <el-table-column
                            prop="is_filter_state_xb"
                            label="滤镜设置(xb)"
                        >
                            <template>{{ brightness_tableDate.is_filter_state_xb ? 'false' : 'true  ' }}</template>
                        </el-table-column>
                        <el-table-column
                            prop="filter_state_red"
                            label="滤镜设置(红)"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="filter_state_green"
                            label="滤镜设置(绿)"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="filter_state_blue"
                            label="滤镜设置(蓝)"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="filter_state_xb"
                            label="滤镜设置(xb)"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="focus_distance"
                            label="焦距距离"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="aperture"
                            label="光圈"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="color_calibration_id"
                            label="颜色矫正(id)"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="color_calibration_value"
                            label="颜色矫正(value)"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="color_shiftCorrection_id"
                            label="色偏矫正(id)"
                        >
                        </el-table-column>
                        <el-table-column
                            prop="color_shiftCorrection_value"
                            label="色偏矫正(value)"
                        >
                        </el-table-column>

                        <el-table-column
                            prop="SetExposureLimit_id"
                            label="曝光限制类型(id)"
                        >
                        </el-table-column>

                        <el-table-column
                            prop="SetExposureLimit_value"
                            label="曝光限制类型(value)"
                        >
                        </el-table-column>

                         <el-table-column
                            prop="FlatFieldCalibrationList_id"
                            label="均匀场校准(id)"
                        >
                        </el-table-column>
                         <el-table-column
                            prop="FlatFieldCalibrationList_value"
                            label="均匀场校准(value)"
                        >
                        </el-table-column>
                         <el-table-column
                            prop="is_color"
                            label="灰度或color"
                        >
                        </el-table-column>
                         <el-table-column
                            prop="ImageScalingCalibration_id"
                            label="图像标尺校准(id)"
                        >
                        </el-table-column>

                        <el-table-column
                            prop="ImageScalingCalibration_value"
                            label="图像标尺校准(value)"
                        >
                        </el-table-column>

                        <el-table-column
                            prop="ConoscopeCalibration_id"
                            label="锥光镜头校准(id)"
                        >
                        </el-table-column>

                        <el-table-column
                            prop="ConoscopeCalibration_value"
                            label="锥光镜头校准(value)"
                        >
                        </el-table-column>

                         <el-table-column
                            prop="txt_type"
                            label="文本类型"
                        >
                        </el-table-column>


                        <el-table-column
                            fixed="right"
                            label="操作"
                            width="100">
                            <template slot-scope="scope">
                                <el-button @click="is_UpdateI29(scope.row)" type="text" size="small">修改</el-button>
                                <el-button @click="I29Delete(scope.row.id)" type="text" size="small">删除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
            </el-col>
        </el-row>
        <el-dialog
            title="修改导轨配置名称(主导轨和摄像头升降是实际位置)"
            :visible.sync="is_UpdateCMS"
            width="30%"
            :before-close="handleClose_is_createtask">
            <el-form>
                <el-form-item label="导轨配置名称:" :label-width="formLabelWidth">
                    <el-input v-model="one_cms_data.cms_auto_name"></el-input>
                </el-form-item>

            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="is_UpdateCMS = false">取 消</el-button>
                <el-button type="primary" @click="UpdateAutoCms">确 定</el-button>
            </div>
        </el-dialog>
        <el-dialog
            title="修改灯光配置名称"
            :visible.sync="is_Light"
            width="30%"
            :before-close="handleClose_is_createtask">
            <el-form>
                <el-form-item label="灯光配置名称:" :label-width="formLabelWidth">
                    <el-input v-model="one_is_Light.username"></el-input>
                </el-form-item>
                <el-form-item label="照度:" :label-width="formLabelWidth">
                    <el-input v-model="one_is_Light.lux" style="width: 200px;"></el-input>
                </el-form-item>
                <el-form-item label="色温:" :label-width="formLabelWidth">
                    <el-input v-model="one_is_Light.cct" style="width: 200px;"></el-input>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="is_Light = false">取 消</el-button>
                <el-button type="primary" @click="UpdateLight">确 定</el-button>
            </div>
        </el-dialog>
        <el-dialog
            title="修改天空散射灯配置名称"
            :visible.sync="is_SkyLight"
            width="30%"
            :before-close="handleClose_is_createtask">
            <el-form>
                <el-form-item label="灯光配置名称:" :label-width="formLabelWidth">
                    <el-input v-model="one_SkyLight.sky_username"></el-input>
                </el-form-item>
                                <el-form-item label="照度:" :label-width="formLabelWidth">
                    <el-input v-model="one_SkyLight.sky_lux" style="width: 200px;"></el-input>
                </el-form-item>
                <el-form-item label="色温:" :label-width="formLabelWidth" >
                    <el-input v-model="one_SkyLight.sky_cct" style="width: 200px;"></el-input>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="is_SkyLight = false">取 消</el-button>
                <el-button type="primary" @click="UpdateSkyLight">确 定</el-button>
            </div>
        </el-dialog>
        <el-dialog
            title="修改PL1C05配置名称"
            :visible.sync="is_PL1C05"
            width="30%"
            :before-close="handleClose_is_createtask">
            <el-form>
                <el-form-item label="灯光配置名称:" :label-width="formLabelWidth">
                    <el-input v-model="one_PL1c05.PL1C05_username"></el-input>
                </el-form-item>
                 <el-form-item label="照度:" :label-width="formLabelWidth">
                    <el-input v-model="one_PL1c05.PL1C05_lux" style="width: 200px;"></el-input>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="is_PL1C05 = false">取 消</el-button>
                <el-button type="primary" @click="UpdatePL1C05">确 定</el-button>
            </div>
        </el-dialog>
        <el-dialog
            title="修改I29配置名称"
            :visible.sync="is_I29"
            width="30%"
            :before-close="handleClose_is_createtask">
            <el-form>
                <el-form-item label="I29配置名称:" :label-width="formLabelWidth">
                    <el-input v-model="one_I29.name_file"></el-input>
                </el-form-item>

            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="is_I29 = false">取 消</el-button>
                <el-button type="primary" @click="UpdateI29">确 定</el-button>
            </div>
        </el-dialog>
    </div>

</template>

<script>
export default {
    data() {
        return {
            is_UpdateCMS: false,
            is_Light: false,
            is_SkyLight: false,
            is_PL1C05: false,
            is_I29: false,
            one_cms_data: '',
            one_is_Light: '',
            one_SkyLight: '',
            one_PL1c05: '',
            one_I29: '',
            port: '',
            tableData: [],
            user_tableDate: [],
            light_tableDate: [],
            sky_light_tableDate: [],
            pl1c05_tableDate: [],
            brightness_tableDate: [],
            formLabelWidth: "120",
        }
    },
    created() {
        this.GetAutoCms()
        this.GetUser()
        this.GetLight()
        this.GetSkyLight()
        this.GetPL1C05()
        this.GetBrightnessAuto()
    },
    methods: {
        is_UpdateAutoCms(row) {
            this.one_cms_data = row
            this.is_UpdateCMS = true
        },
        is_UpdateLight(row) {
            this.one_is_Light = row
            this.is_Light = true
        },
        is_UpdateI29(row) {
            this.one_I29 = row
            this.is_I29 = true
        },
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose_is_createtask(done) {
            this.$confirm('确认关闭？')
                .then(_ => {
                    done();
                })
                .catch(_ => {
                });
        },
        I29Update() {
            this.$axios.get(this.$settings.BASE_URL + `brightness_auto/i29list/`).then((res) => {
                if (res.data.code == 100) {
                    this.brightness_tableDate = res.data.data
                }
            })
        },
        PL1C05Delete(id) {
            this.$axios.delete(this.$settings.BASE_URL + `PL1C05/PL1C05List/${id}/`).then((res) => {
                if (res.data.code == 100) {
                    this.$message({
                        message: res.data.msg,
                        type: 'success'
                    });
                    this.GetPL1C05()
                } else {
                    this.$message.error(res.data.msg);
                }
            }).catch(error => {
                this.$message.error('有关联数据，禁止删除');
            });
        },

        GetAutoCms() {
            this.$axios.get(this.$settings.BASE_URL + `cmsauto/cmsautolist/`).then((res) => {
                if (res.data.code == 100) {
                    this.tableData = res.data.data
                }
            })
        },
        UpdateLight() {
            this.$axios.put(this.$settings.BASE_URL + `Ccxl/LightList/${this.one_is_Light.id}/`, this.one_is_Light).then((res) => {
                if (res.data.code == 100) {
                    this.$message({
                        message: res.data.msg,
                        type: 'success'
                    });
                    this.light_tableDate = res.data.data
                    this.is_Light = false
                    this.GetLight()
                } else {
                    this.$message.error(res.data.msg);
                }
            }).catch(error => {
                this.$message.error('有关联数据，禁止删除');
            });
        },
        UpdateSkyLight() {
            this.$axios.put(this.$settings.BASE_URL + `Ccxl/SkyLightList/${this.one_SkyLight.id}/`, this.one_SkyLight).then((res) => {
                if (res.data.code == 100) {
                    this.$message({
                        message: res.data.msg,
                        type: 'success'
                    });
                    this.sky_light_tableDate = res.data.data
                    this.is_SkyLight = false
                    this.GetSkyLight()
                } else {
                    this.$message.error(res.data.msg);
                }
            }).catch(error => {
                this.$message.error('有关联数据，禁止删除');
            });
        },
        DeleteLight(id) {
            this.$axios.delete(this.$settings.BASE_URL + `Ccxl/LightList/${id}/`, this.one_cms_data).then((res) => {
                if (res.data.code == 100) {
                    this.$message({
                        message: res.data.msg,
                        type: 'success' 
                    });
                    this.GetLight()
                } else {
                    this.$message.error(res.data.msg);
                }
            }).catch(error => {
                this.$message.error('有关联数据，禁止删除');
            });
        },
        UpdateAutoCms() {
            this.$axios.put(this.$settings.BASE_URL + `cmsauto/cmsautoupdate/${this.one_cms_data.id}/`, this.one_cms_data).then((res) => {
                if (res.data.code == 100) {
                    this.$message({
                        message: res.data.msg,
                        type: 'success'
                    });
                    
                    this.is_UpdateCMS = false

                } else {
                    this.$message.error(res.data.msg);
                }
            }).catch(error => {
                this.$message.error(error);
            });
        },
        DeleteAutoCms(id) {
            this.$axios.delete(this.$settings.BASE_URL + `cmsauto/cmsautodelete/${id.id}/`).then((res) => {
                if (res.data.code == 100) {
                    this.$message({
                        message: res.data.msg,
                        type: 'success'
                    });
                    this.tableData = res.data.data
                } else {
                    this.$message.error(res.data.msg);
                }
            }).catch(error => {
                this.$message.error('请取消关联数据');
            });
        },
        // 获取用户
        GetUser() {
            this.$axios.get(this.$settings.BASE_URL + `user/query/`).then((res) => {
                if (res.data.code == 100) {
                    this.user_tableDate = res.data.data.results
                }
            })
        },
        // 删除用户
        UpdateUser(id) {
            this.$axios.delete(this.$settings.BASE_URL + `user/delete/${id}`).then((res) => {
                if (res.data.code == 100) {
                    this.$message({
                        message: res.data.msg,
                        type: 'success'
                    });
                    this.user_tableDate = res.data.data
                } else {
                    this.$message.error('静止删除');
                }
            })
        },
        // 获取灯光
        GetLight() {
            this.$axios.get(this.$settings.BASE_URL + `Ccxl/LightList/`).then((res) => {
                if (res.data.code == 100) {
                    this.light_tableDate = res.data.data
                }
            })

        },
        // 获取天空散射灯
        GetSkyLight() {
            this.$axios.get(this.$settings.BASE_URL + `Ccxl/SkyLightList/`).then((res) => {
                if (res.data.code == 100) {
                    this.sky_light_tableDate = res.data.data
                }
            })
        },
        SkyLightDelete(id) {
            this.$axios.delete(this.$settings.BASE_URL + `Ccxl/SkyLightList/${id}/`).then((res => {
                    if (res.data.code == 100) {
                        this.$message({
                            message: res.data.msg,
                            type: 'success'
                        });
                        this.GetSkyLight()
                    } else {
                        this.$message.error(res.data.msg);
                    }
                })
            ).catch(error => {
                this.$message.error('请取消关联数据');
            });
        },
        is_UpdateSkyLight(row) {
            this.one_SkyLight = row
            this.is_SkyLight = true
        },
        is_UpdatePL1C05(row) {
            this.one_PL1c05 = row
            this.is_PL1C05 = true
        },
        GetPL1C05() {
            this.$axios.get(this.$settings.BASE_URL + `PL1C05/PL1C05List/`).then((res) => {
                if (res.data.code == 100) {
                    this.pl1c05_tableDate = res.data.data
                }
            })
        },
        // 修改PL1C05配置
        UpdatePL1C05() {
            this.$axios.put(this.$settings.BASE_URL + `PL1C05/PL1C05List/${this.one_PL1c05.id}/`, this.one_PL1c05).then((res) => {
                if (res.data.code == 100) {
                    this.$message({
                        message: res.data.msg,
                        type: 'success'
                    });
                    this.GetPL1C05()
                    this.is_PL1C05 = false
                } else {
                    this.$message.error(res.data.msg);
                }
            }).catch(error => {
                this.$message.error(error);
            });
        },
        // 获取亮度计位置
        GetBrightnessAuto() {
            this.$axios.get(this.$settings.BASE_URL + `brightness_auto/i29list/`).then((res) => {
                if (res.data.code == 100) {
                    this.brightness_tableDate = res.data.data
                }
            })
        },
        // 删除亮度计位置
        I29Delete(id) {
            this.$axios.delete(this.$settings.BASE_URL + `brightness_auto/i29delete/${id}/`).then((res => {
                    if (res.data.code == 100) {
                        this.$message({
                            message: res.data.msg,
                            type: 'success'
                        });
                        this.brightness_tableDate = res.data.data
                    } else {
                        this.$message.error(res.data.msg);
                    }
                })
            ).catch(error => {
                this.$message.error('请取消关联数据');
            });
        },
        UpdateI29() {
            this.$axios.put(this.$settings.BASE_URL + `brightness_auto/i29update/${this.one_I29.id}/`, this.one_I29).then((res => {
                if (res.data.code == 100) {
                    this.$message({
                        message: res.data.msg,
                        type: 'success'
                    });
                    this.brightness_tableDate = res.data.data
                    this.is_I29 = false
                } else {
                    this.$message.error(res.data.msg);
                }
            })).catch(error => {
                this.$message.error(error);
            })
        },
    }
}
</script>

<style scoped>
.el-submenu__title{
  font-size:20px
}
.el-table{
font-size:20px
}
.custom-table {
  background-color: #262626; /* 这里设置为想要的背景颜色 */
}
</style>
